package com.ycrlkj.android.modulesbase.libbase.utils;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;

public class AndroidUtil {

//    private static Bitmap getBitMap(int resourceId) {
//        Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);
//        int width = bitmap.getWidth();
//        int height = bitmap.getHeight();
//        int newWidth = 55;
//        int newHeight = 55;
//        float widthScale = ((float) newWidth) / width;
//        float heightScale = ((float) newHeight) / height;
//        Matrix matrix = new Matrix();
//        matrix.postScale(widthScale, heightScale);
//        bitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, true);
//        return bitmap;
//    }


}
